import 'dart:async';

import 'package:flutter/services.dart';

class Pusher {
  static const MethodChannel _channel = const MethodChannel('pusher');

  static Future<String> get platformVersion async {
    final String version = await _channel.invokeMethod('getPlatformVersion');
    return version;
  }

  static const EventChannel _eventChannel = const EventChannel("com.hw.pusher/stream");


  static Stream<dynamic> receive()  {
    return _eventChannel.receiveBroadcastStream();
  }
}
